<?php
namespace app\user\model;
use app\common\model\MeetWishUsers as commonMeetWishUsers;
class MeetWishUsers extends commonMeetWishUsers
{
	protected $table              = 'meet_wish_users';
    public function wishs()
    {
        return $this->belongsTo('Wishs', 'wish_id');
    }
	public function caravans(){
	    return $this->belongsTo('\\app\\common\\model\\Caravans','caravan_id');
	}
    public function getWishs($where = [], $with = null)
    {
        return self::with($with)->where($where)->paginate();
    }
}
